Python编程简介

您所在的位置:网站首页 is python a programming language or scripting language Python编程简介

Python编程简介

2022-06-24 20:18| 来源: 网络整理| 查看: 265

Python is a General-Purpose Programming Language or rather a Scripting Language. It was developed in 1990s by a person named Guido Van Rossum.

Python是一种通用编程语言,或者是一种脚本语言。 它是由一位名叫Guido Van Rossum的人在1990年代开发的。

Python的功能 (Features of Python)

1. Cross-Compiled i.e., Platform Independent or Portable 2. Interpreted 3. High-level Scripting Language 4. Open Source 5. Supports Object Oriented Features

1.交叉编译,即平台独立或可移植 2.解释 3.高级脚本语言 4.开源 5.支持面向对象的功能

Introduction to Python Programming

Python is an interpreted and a cross-compiled programming language. It is actually a Scripting Language rather than a Programming Language. A Scripting language is basically used in combination with HTML code usually for a Website Development. Python code is comparatively very less than that of Java, C or C++. Python is one of the few languages which supports Procedural Programming features and Object Oriented Programming in a single program.

Python是一种解释型和交叉编译型编程语言。 它实际上是脚本语言而不是编程语言。 脚本语言通常与HTML代码结合使用,通常用于网站开发。 相对而言,Python代码比Java,C或C ++少得多。 Python是在单个程序中支持过程编程功能和面向对象编程的少数语言之一。

Python的应用 (Applications of Python)

1. Web Application Development and Web Frameworks such as DJango and Pyramid. 2. Game Development 3. Desktop Based Applications 4. Micro Frameworks such as Bottle and Flask

1. Web应用程序开发和Web框架,例如DJango和Pyramid。 2.游戏开发 3.基于桌面的应用程序 4.微型框架,例如Bottle和Flask

Python is a Free and an Open-Source Language. It is one of the most demanded languages all over the world as of now and has a huge career scope. So, you better learn it with us.

Python是一种免费的开源语言。 到目前为止,它是世界上最需要的语言之一,并且具有广阔的职业范围。 因此,您最好与我们一起学习。

Python is available in Windows Operating Systems, Linux Versions such as Ubuntu, OpenSuse, etc. Python can also be worked upon in Mac OS.

Python在Windows操作系统,Linux版本(例如Ubuntu,OpenSuse等)中可用。Python也可以在Mac OS中使用。

安装Python (Installing Python)

The following are the ways to install Python on different platforms.

以下是在不同平台上安装Python的方法。

视窗 (Windows)

You can either use an IDE for Python programming or use a Command Line Tool. Python’s latest version is Python 3.4.3. Visit the following link and select the version to download it. https://www.python.org/downloads/

您可以使用IDE进行Python编程,也可以使用命令行工具。 Python的最新版本是Python 3.4.3。 访问以下链接并选择要下载的版本。 https://www.python.org/downloads/

You also get an Integrated Development Environment (IDE) available for Python programming. One of the best IDEs available in the market is JetBrains PyCharm Edition. It provides an Editor, in-built Interpreter and many other features such as Web Development, Django Frameworks Development. It is a freeware or a Free Edition. You can download the Community Edition (Free) using the following link. https://www.jetbrains.com/pycharm/download/

您还将获得可用于Python编程的集成开发环境(IDE)。 市场上最好的IDE之一是JetBrains PyCharm Edition。 它提供编辑器,内置解释器和许多其他功能,例如Web开发,Django框架开发。 它是免费软件或免费版。 您可以使用以下链接下载社区版(免费)。 https://www.jetbrains.com/pycharm/download/

的Linux (Linux)

Linux, specifically Ubuntu Distribution comes pre-installed with Python Interpreter. So, it has a pre-installed Python programming Command Line Tool. In order to check whether your system has Python installed on it, open the Terminal and type below command.

Linux,特别是Ubuntu Distribution,已预装Python Interpreter。 因此,它具有预装的Python编程命令行工具。 为了检查您的系统上是否安装了Python,请打开“终端”并键入以下命令。

python –version

python –版本

This command will display the version of Python installed on your machine.

该命令将显示计算机上安装的Python版本。

However, if you need an Integrated Development Environment (IDE) for Python, you can download the JetBrains PyCharm package from the following link and install it. To download the PyCharm Free Edition, visit the following link and select Linux OS.  https://www.jetbrains.com/pycharm/download/

但是,如果您需要Python集成开发环境(IDE),则可以从以下链接下载JetBrains PyCharm软件包并进行安装。 要下载PyCharm Free Edition,请访问以下链接并选择Linux OS。 https://www.jetbrains.com/pycharm/download/

Follow the steps below to Install Python in Ubuntu (Linux)

请按照以下步骤在Ubuntu(Linux)中安装Python

1. Copy the file with .tar.gz extension into a location folder. It should be an Empty Directory. This folder will be the location where the Python software will be installed.

1.将扩展名为.tar.gz的文件复制到位置文件夹中。 它应该是一个空目录。 该文件夹将是安装Python软件的位置。

2. Unpack (or Extract) the file using the following command from the Ubuntu Terminal. tar xfz filename.tar.gz

2.从Ubuntu终端使用以下命令解压缩(或解压缩)文件。 tar xfz filename.tar.gz

3. Now, execute the PyCharm.sh from the Bin Directory.

3.现在,从Bin目录执行PyCharm.sh。

Mac OS X (Mac OS X)

To use Python in Mac OS, you need an Integrated Development Environment such as JetBrains PyCharm Community Edition which is a Freeware. You can also opt for its Professional Edition which is free for 30 Days Evaluation Period. To download it for Mac OS, visit the following link and select your Operating System. https://www.jetbrains.com/pycharm/download/

要在Mac OS中使用Python,您需要集成开发环境,例如免费的JetBrains PyCharm Community Edition。 您还可以选择其专业版,该版在30天的评估期内免费提供。 要将其下载到Mac OS,请访​​问以下链接并选择您的操作系统。 https://www.jetbrains.com/pycharm/download/

Download the PyCharm file and Mount it as another disk in your system. Now copy the PyCharm file into your Applications Folder and you’re ready to run Python.

下载PyCharm文件并将其挂载为系统中的另一个磁盘。 现在,将PyCharm文件复制到“应用程序”文件夹中,即可开始运行Python。

翻译自: https://www.thecrazyprogrammer.com/2015/07/introduction-to-python-programming.html



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3